#import "HeatwaveZealotController.h"
        
#import "HeatwaveZealotModel.h"
#import "HeatwaveZealotCell.h"
#import "Masonry.h"

@interface HeatwaveZealotController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *nostalgicCollectionView;
@property (nonatomic, strong) NSMutableArray *swayLaughterModels;

@end

@implementation HeatwaveZealotController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self radiateConfigsui];
	[self feastXylophonefetchData];
}


- (void)radiateConfigsui {
    UICollectionViewFlowLayout *melancholyIlluminateJourney = [[UICollectionViewFlowLayout alloc] init];
    melancholyIlluminateJourney.minimumLineSpacing = 10;
    melancholyIlluminateJourney.minimumInteritemSpacing = 10;
    melancholyIlluminateJourney.itemSize = CGSizeMake(100, 100);
    melancholyIlluminateJourney.scrollDirection = UICollectionViewScrollDirectionVertical;
    
    self.nostalgicCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:melancholyIlluminateJourney];
    self.nostalgicCollectionView.backgroundColor = UIColor.clearColor;
    self.nostalgicCollectionView.delegate = self;
    self.nostalgicCollectionView.dataSource = self;
    self.nostalgicCollectionView.showsHorizontalScrollIndicator = NO;
    self.nostalgicCollectionView.showsVerticalScrollIndicator = NO;
    [self.nostalgicCollectionView registerClass:[HeatwaveZealotCell class] forCellWithReuseIdentifier:NSStringFromClass([HeatwaveZealotCell class])];
    
    [self.view addSubview:self.nostalgicCollectionView];
    [self.nostalgicCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
}

//: 获取数据模型
- (void)feastXylophonefetchData {
	
}

//: 懒加载数据模型数组
- (NSMutableArray *)swayLaughterModels {
	if (!_swayLaughterModels) {
		_swayLaughterModels = [NSMutableArray array];
	}
	return _swayLaughterModels;
}

#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.swayLaughterModels.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    HeatwaveZealotCell *marvelZephyr = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([HeatwaveZealotCell class]) forIndexPath:indexPath];
    return marvelZephyr;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
